﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataAccessLayer.DAL
{
    public class PaymentTypeDAL
    {
        public static List<PaymentType> GetAllPayment()
        {
            using (var context = new ReverseAuctionEntities())
            {
                return context.PaymentTypes.ToList();
            }
        }

        public static PaymentType GetByID(int paymentID)
        {
            using (var context = new ReverseAuctionEntities())
            {
                return context.PaymentTypes.SingleOrDefault(u => u.ID == paymentID);
            }
        }
    }
}
